package com.h.sevice.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.h.common.entity.Commodity;
import com.h.common.exception.WLAdminException;
import com.h.mapper.CommodityMapper;
import com.h.sevice.CommodityService;
import com.pandawork.core.dao.CommonDao;
import com.pandawork.core.exception.SSException;
import com.pandawork.core.log.LogClerk;

@Service("commodityService")
public class CommodityServiceImpl implements CommodityService {

	@Autowired
	CommonDao commonDao;
	
	@Autowired
	CommodityMapper commodityMapper;
	
	@Override
	public Commodity findCommodityByNum(Integer num) throws SSException{
		try {
			return commodityMapper.findCommodityByNum(num);
		} catch (Exception e) {
			LogClerk.errLog.error(e);
			throw SSException.get(WLAdminException.SystemException, e);
		}
	}

	@Override
	public void delCommodity(Integer num) throws SSException {
		// TODO Auto-generated method stub
		
	}

}
